/*
 * =====================================================================================
 *
 *       Filename:  IEmperor.cc
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  09/14/21 20:32:47
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  XXXXXXX (), liushuyong@yidao.com
 *        Company:  YiDao
 *        Copyright:  Copyright 2021, XXXXXXX
 *
 * =====================================================================================
 */
#include "Log.h"
#include "IEmperor.h"
#include <uuid/uuid.h>

static const string TAG = "IEmperor";

IEmperor::IEmperor(string name) {
    LogI("New");
    uuid_t uuid;
    char str[36];
    uuid_generate(uuid);
    uuid_unparse(uuid, str);
    mName = name;
    mID = str;
    LogI("name=%s, id=%s\n", mName.c_str(), mID.c_str());
}

IEmperor::~IEmperor() {
}

string IEmperor::GetName() {
    return mName;
}

string IEmperor::GetID() {
    return mID;
}
